package type;

public class LiPinKa {
	private String cardno;
	private int amount;
	public String getCardno() {
		return cardno;
	}
	public void setCardno(String cardno) {
		this.cardno = cardno;
	}
	public int getAmount() {
		return amount;
	}
	public void setAmount(int amount) {
		this.amount = amount;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((cardno == null) ? 0 : cardno.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		LiPinKa other = (LiPinKa) obj;
		if (cardno == null) {
			if (other.cardno != null)
				return false;
		} else if (!cardno.equals(other.cardno))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "LiPinKa [cardno=" + cardno + ", amount=" + amount + "]";
	}
	public LiPinKa(String cardno, int amount) {
		super();
		this.cardno = cardno;
		this.amount = amount;
	}
	public LiPinKa() {
		super();
	}
	
}
